package com.xiaoma.myaudience.biz.task;

import java.util.Map;

import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;

import com.xiaoma.myaudience.biz.model.UserAccount;
import com.xiaoma.myaudience.util.Logger;
import com.xiaoma.myaudience.util.task.BaseDataAsyncTask;

/**
 * 登陆
 * @author xali
 *
 */
public class UploadTask extends BaseDataAsyncTask<Map<String,String>, Void, Map<String,Object>> {
    private final static String TAG = "VideodetailInfoTask";
    /**
     * {@inheritDoc}
     * 
     * @param context
     * @param taskType
     * @param callback
     */
    public UploadTask(Context context, int taskType, DataAsyncCallback callback) {
        super(context, taskType, callback);
    }
    
    @Override
    protected Map<String,Object> doInBackground(Map<String,String>... params) {
 
    	return null;
    }
    
    private void loginFail(){
    	
    	Logger.e("login fail, clear all user infomation.");
    	
    	ContentResolver r = mContext.getContentResolver();
    	ContentValues values = new ContentValues();
    	values.put(UserAccount.ISLOGIN, "0");
    	String where = UserAccount.ISLOGIN + "='1'"; 
//    	r.update(UserAccountDbHelper.getUri(), values, where, null);
        
    }
    
    public class LoginStatus{
    	/**登陆标示1为登陆成功 ，其他为登陆失败*/
    	public int mCodeStatus;
    	/**登陆信息*/
    	public String mMessage;
    }
}
